﻿using Coldairarrow.Business.Base_Manage;
using Coldairarrow.Entity.BackStage.ConsumeChats;
using Coldairarrow.Util;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;

namespace Coldairarrow.Business.BackStage.ConsumeChats
{
    public interface IConsumeServerBusiness
    {
        Task<PageResult<Base_UserDTO>> GetUserDataListAsync(PageInput<GetUsersInputDTO> input);
        Task<PageResult<ConsumeServer>> GetDataListAsync(PageInput<ConditionDTO> input);
        Task<ConsumeServer> GetTheDataAsync(string id);
        Task SetUserToCustomrtServer(string id, int ClassId);
        Task DeleteUserToCustomrtServer(string id);
        Task<SetServerInfoDTO> GetCServerInfoAsync();
        Task SetServerInfoAsync(SetServerInfoDTO input);
        Task<SetServerInfoDTO> GetTheUserDataAsync(IdInputDTO id);
    }

    public class GetUsersInputDTO
    {
        public bool? IsCService { get; set; }

        public int? ClassId { get; set; }
        public string userId { get; set; }
        public string keyword { get; set; }
    }

    public class SetServiceInputDTO
    { 
        [Required]
        public string Id { set; get; }

        [Required]
        public int ClassId { set; get; } = 0;
    }

    public class SetServerInfoDTO
    {

        /// <summary>
        /// 客服Id
        /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// 客服平台id
        /// </summary>
        public int ClassId { get; set; }

        /// <summary>
        /// 客服昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 头像地址
        /// </summary>
        public string HeadImg { get; set; }
    }

}